Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

(1) ShareShare
ReportReport
Posted on by 10

Hi,

We've updated our Dynamics GP Dexterity customization.  When launching GP we are getting the error message:

The FMT_PM_Create_Paid_Trx_HIST_Record_After triggers is not registered.  2

The started procedure code is:

l_result = Trigger_RegisterProcedure(script PM_Create_Paid_Trx_HIST_Record, TRIGGER_AFTER_ORIGINAL, script FMT_PM_Create_Paid_Trx_HIST_Record_After);

if l_result <> SY_NOERR then

    warning "The FMT_PM_Create_Paid_Trx_HIST_Record_After trigger is not registered.";

end if;

I need to check that the parameters are correct and need the procedure paramters for PM_Create_Paid_Trx_HIST_Record.  I tried using GP Power Toos but the resource info comes up blank.

Any ideas on how to resolve this?

Thanks,

-jeff

pastedimage1649382066325v1.png

FMT_PM_Create_Paid_Trx_HIST_Record_After

inout file PM_Paid_Transaction_HIST;
inout file PM_Key_MSTR;
inout PMShadowTables IO_PMShadowTables;
inout DBTransactionData IO_DBTransactionData;
in string IN_Voucher_Number;
in string IN_Vendor_ID;
in integer IN_Document_Type;
in date IN_Document_Date;
in string IN_Document_Number;
in string IN_Batch_Number;
in date IN_Discount_Date;
in date IN_Due_Date;
in string IN_PO_Number;
in string IN_Tax_Schedule_ID;
in string IN_Purchase_Schedule_ID;
in string IN_Freight_Schedule_ID;
in string IN_Misc_Schedule_ID;
in string IN_Shipping_Method;
in string IN_Payment_Terms_ID;
in string IN_Currency_ID;
in dollar IN_Dollar_Parms[TRX_AMT_NUM];
in string IN_Trx_Description;
in string IN_Checkbook_ID;
in string IN_Batch_Source;
in string IN_TRX_Source;
in 'Note Index' IN_Note_Index;
in 'PPS Tax Rate' IN_PPS_Tax_Rate;
in 'Percent Of Gross Amount Subject'IN_PPS_Percent_Subject;
in integer IN_Payment_Entry_Type;
in string IN_Card_Name;
in date IN_GL_Posting_Date;
in date IN_Date_Inv_Paid_Off;
in integer IN_MC_Update_Status;
in boolean fICTrx;
in date IN_Tax_Date;
in 'Apply Withholding' IN_fApplyWithholding;
in boolean I_fEcTrx;
in 'Tax Invoice Required' I_fTaxInvReqd;
in string sCheckName;
in Electronic I_fElectronic;
in 'Vendor Address Code - Remit To'isVendorAddressRemitToID;
in '1099 Type' ten99Type;
in '1099 Box Number' ten99BoxNumber;
optional in 'PO Number' sPONumber="";


release table FMT_Expense_GP_BMA;
clear table FMT_Expense_GP_BMA;

'Intercompany ID' of table FMT_Expense_GP_BMA = 'Intercompany ID' of globals;
Origin of table FMT_Expense_GP_BMA = 1; {PM}
'Document Type' of table FMT_Expense_GP_BMA = IN_Document_Type;
'Document Number' of table FMT_Expense_GP_BMA = IN_Voucher_Number;
'Record Number' of table FMT_Expense_GP_BMA = 0;
change table FMT_Expense_GP_BMA by number 1;
if err() = OKAY then
FMT_Processed of table FMT_Expense_GP_BMA = true;
'Posted Date' of table FMT_Expense_GP_BMA = sysdate();
save table FMT_Expense_GP_BMA;
end if

Categories:
  • jeffFMT Profile Picture
    jeffFMT 10 on at
    RE: Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

    Thank you. That's what I needed.  -Jeff

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,932 Most Valuable Professional on at
    RE: Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

    You are missing the parameters added at the end for workflow.

    Here is the full parameter list from18.4

    inout file PM_Paid_Transaction_HIST,
    PM_Key_MSTR;
    inout PMShadowTables IO_PMShadowTables;
    inout DBTransactionData IO_DBTransactionData;
    in string IN_Voucher_Number,
    IN_Vendor_ID;
    in integer IN_Document_Type;
    in date IN_Document_Date;
    in string IN_Document_Number,
    IN_Batch_Number;
    in date IN_Discount_Date,
    IN_Due_Date;
    in string IN_PO_Number,
    IN_Tax_Schedule_ID,
    IN_Purchase_Schedule_ID,
    IN_Freight_Schedule_ID,
    IN_Misc_Schedule_ID,
    IN_Shipping_Method,
    IN_Payment_Terms_ID,
    IN_Currency_ID;
    in dollar IN_Dollar_Parms[TRX_AMT_NUM];
    in string IN_Trx_Description,
    IN_Checkbook_ID,
    IN_Batch_Source,
    IN_TRX_Source;
    in 'Note Index' IN_Note_Index;
    in 'PPS Tax Rate' IN_PPS_Tax_Rate;
    in 'Percent Of Gross Amount Subject' IN_PPS_Percent_Subject;
    in integer IN_Payment_Entry_Type;
    in string IN_Card_Name;
    in date IN_GL_Posting_Date,
    IN_Date_Inv_Paid_Off;
    in integer IN_MC_Update_Status;
    in boolean fICTrx;
    in date IN_Tax_Date;
    in 'Apply Withholding' IN_fApplyWithholding;
    in boolean I_fEcTrx;
    in 'Tax Invoice Required' I_fTaxInvReqd;
    in string sCheckName;
    in Electronic I_fElectronic;
    in 'Vendor Address Code - Remit To' isVendorAddressRemitToID;
    in '1099 Type' ten99Type;
    in '1099 Box Number' ten99BoxNumber;
    optional in 'PO Number' sPONumber = "";
    optional in 'Workflow Status' WorkflowStatus = WORKFLOW_STATUS_NOT_ACTIVATED;
    optional in 'Invoice Receipt Date' IN_InvoiceReceiptDate;
    optional in string IN_Lng_Description="";

    Regards

    David

  • Suggested answer
    RE: Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

    I believe you've opened a support case with our team, so I'll let that engineer engage you there.

    The Community may be able to assist as well......

    Thanks

  • jeffFMT Profile Picture
    jeffFMT 10 on at
    RE: Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

    Almas,  thank you for your feedback.  At this point we are trying to avoid a rewrite of the code.  Just trying to fix it enough to upgrade.  Just trying to find the current set of parameters for this procedure.

  • Almas Mahfooz Profile Picture
    Almas Mahfooz 11,003 User Group Leader on at
    RE: Dexterity U\upgrade failing to register custom trigger - need procedure signature / parameters

    Hi,

    In my opinion use any other event as this procedure is called by various scripts and as I see you are only updating your 3rd party table and you don't need all these parameters for your script.

    You can also try registering this trigger without parameter, but in this case you have to do some additional work to keep Document Type and Voucher Number to pass to you script .

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans