Error creating a PO from an SO
Gilles Plante
Hi,I hope I am in the right forum.
We have a customer running SAP B1 8.81 PL07 with Coresuite country 2.91 who experience a problem trying to make a PO from an SO using the Functions button at the bottom. Since it's Sunday, it's hard to get more details, but the problem occurs in COR_Utility_Helper_Run_FB_COR_US_00000052. There is a screenshot in the attached document.
Thanks
Gilles Plante
Friederike Mundt
Hi Gilles,It is difficult to find the error without the customize rule.
It seems like some data the rule is expecting to create the Purchase Order is missing.
Can you send the code of the rule or export the rule and attach it as cocu?
Kind Regards,
Friederike
Paolo Manfrin
Hi Gilles,the error displayed indicates that you're trying to read out of a query where no data is present.
You can try to modify your implementation like:
using (System.Data.SqlClient.SqlDataReader rdr = SwissAddonFramework.B1Connector.GetB1Connector().ExecuteQuery("my query"))
{
if (rdr.HasRows)
{
rdr.Read();
// read
}
else
{
// do nothing
}
}
tht,
paolo
0
Please sign in to leave a comment.
Comments
0 comments