Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrick711/40653d1db0358bfcede94011fb7df22c to your computer and use it in GitHub Desktop.
Save patrick711/40653d1db0358bfcede94011fb7df22c to your computer and use it in GitHub Desktop.
Insertion Failed
try
{
new_package = Packages.Insert(new_package);
}
catch (Exception ex)
{
PXProcessing<SOShipment>.SetError(RowIndex, ex.Message));
return false;
}
//Uh-oh
if (new_package == null)
{
PXProcessing<SOShipment>.SetError(RowIndex, "Insert Failed"));
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment