on 03-04-2024 7:32 AM
Hi,
I need to update an UDF Field in Receipt from Production.but while updating i am getting the error "the specified resource name cannot be found in the image file".
Here is my DI API Code :
SAPbobsCOM.Documents inventoryTransfer = (SAPbobsCOM.Documents)Global.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);
if (inventoryTransfer.GetByKey(208))
{
// Update the user-defined field value
inventoryTransfer.UserFields.Fields.Item("U_NoPkg").Value = "1234";
if (inventoryTransfer.Update() == 0)
{
Global.oApplication.StatusBar.SetText("Updation Success : ...", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Warning);
}
else
{
string error = Global.oCompany.GetLastErrorDescription();
Global.oApplication.StatusBar.SetText("Updation Failed : " + error + "...", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Warning);
}
Kindly Suggest for the solution.Thanks
Hi dinesh_s1,
This issue might be due to some database corruption.
If you want to get it investigated, kindly create an incident for SAP Business One Support Team under the component SBO-SDK-DI.
Kindly mention the link of this discussion while creating the incident.
Kind regards,
Shalini Singhal
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi dinesh_s1,
The error means that there is something which does not exist.
At which line are you getting the error?
Can you make sure that the UDF (U_NoPkg) which you are trying to update exists and is in same case letters as in the database?
Kind regards,
ANKIT CHAUHAN
SAP Business One Support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.