We currently have an application that allows us to capture pre quote information. Once we have captured all details we then convert the pre quote to a service order using the TransactionSet API. I was asked add the bin id to the update. Pretty simple with the setup however when I attempt to convert the pre quote I get “Transaction 1:: General Exception: Unexpected response window: Epicor Prophet 21”. I am very new to Prophet 21. Does anyone know what this means? Is there better logging that I can look at to fin out why this is happening? Here is the code…
dataElement = new DataElement()
{
Name = "TP_SERVICEITEMDETAIL.service_item_detail",
Type = "Form",
BusinessObjectName = "oe_line_service"
};
row = new Row();
AddEdit(row, "item_id", line.ItemId);
AddEdit(row, "serial_number", line.SerialNumber);
AddEdit(row, "bin_id", line.BinId);
dataElement.Rows.Add(row);
transaction.DataElements.Add(dataElement);
private void AddEdit(Row row, string name, object value, bool ignoreIfEmpty = false)
{
row.Edits.Add(new Edit
{
Name = name,
Value = value?.ToString() ?? string.Empty,
IgnoreIfEmpty = ignoreIfEmpty
});
}