Jump to content

Recommended Posts


Does anyone know what error code 4101 means? It just started happening when I try to push an invoice to QuickBooks Desktop using the FM Books Connector plugin v12.0.0.2 (64 bit). The script was pushing invoices fine yesterday.

The error messages appear when initiating a new request and also when adding related record requests (for the invoice lines). The plugin step returns the result 0, as does FMPA 18 if I do a Get ( LastError ), so neither FMPA nor the plugin seem to think there's an error.

Also, I'm seeing a progress bar I've never seen before (see below). It displays for about 20 seconds. I never saw that before today.

This is on Windows 10, QuickBooks Pro 2017, FMPA 18. All are up to date.

I rebuilt the QB data file, ran the QB file doctor (which said no errors found).

Any help is greatly appreciated.



Link to comment
Share on other sites

Hi Kent,

This error indicates a FileMaker or system error generated by FileMaker. The best recommendation is to review and walk through the scripts to find where the error is occurring. As a general rule of thumb, if the dialog box or error box has a red X icon, (i) symbol, or an <!> icon it is a system generated error.



  • Like 1
Link to comment
Share on other sites

Hey PCIPal,

Thanks for the reply. I fixed the problem and think I figured out where the problem was (although I'm not 100% certain). If you don't mind I'd like to run this by you so I have a better understanding of how plugin/QB sessions are handled.

I was beginning the Connector session in a parent script 2 stack calls away from the script that primed the data fields and then posted the request. When I moved the session opener step to a parent script just 1 stack call away from the subscript that executes the post  the problem disappeared.

Does this behavior make any sense to you? All the scripts called were in the same file. Does a session not realize it exists if the post is more than 1 script stack call away? Or is something else going on you can think of?

Thanks again. I appreciate your help.



Link to comment
Share on other sites

Hi Kent,

As long as the session to QB is opened the number of stacks should not have an effect. There is a chance that something within the stack in between could have caused the connection to end early, or interfere with the data. It is great to hear you got it working though! If you wish to investigate it further, then I suggest closely looking at the second call stack to see if you can spot anything that may cause one of these issues. Also, another option is to view the Windows event logs and, if you are lucky, it could show a bit more information about the error.



  • Thanks 1
Link to comment
Share on other sites

  • 11 months later...
  • Newbies

In case anyone else goes googling this error, I ran into it today, too. This afternoon, everything worked perfectly. Tonight, error 4101. Same FM, same QB, same record, same script, same everything. Except ... in the script I was running, I made a couple edits from a Mac that, of course, can't see all the PCQB functions because it's a PC only plug-in. I didn't touch any lines that referenced the FM Books Connector plug-in, just wrapped a few lines in an If/End If.

I solved the problem by going back into the same script from a PC and editing the script step that triggers the 4101 error (PCQB_RqNew-EstimateAdd) and saved it and voila ... no more 4101. I'm guessing my problem was due to editing from the Mac.

Gordon Shewach

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Richard Carlton
      When it comes to mutli-record selection techniques, this demo will explore both basic examples and advanced examples. Follow along with this free sample file: https://bit.ly/2XyXjJC. Future live streams: https://fmtraining.tv/#LIVE
      [email protected]
    • By Prasad Khandagale
      We are happy to announce the launch of the next FM Quizilla – Our Flagship product for FileMaker developers to practice for the FileMaker Certification exam. FM Quizilla supports aspiring developers who wish to be FileMaker 18 Certified. LEARN – EXPERIENCE – PRACTICE giving FileMaker 18 certification exam on your phone or tablet.
      What FM Quizilla offers?
      Even as FileMaker is reborn as Claris International Inc. and assumed a new brand identity -- MetaSys Software continues to bring to you the latest version , with all the features you have come to expect !
      FM Quizilla has got a well-researched question bank along with questions related to FileMaker 18. Features like Practice test, Historical Analysis, Reviewing Answers, Tracking your progress will all continue to help you with learning and preparation for certification.
      How can the users gain more from this app?
      Users can download the trial version of the app and explore all the app features and a limited number of questions.
      Note: Those who purchased the previous version of the app – FM Quizillaa for FileMaker 17 and FileMaker 16 can continue to use it.
      Happy Learning!
      For more info. https://www.metasyssoftware.com/fm-quizilla
    • By troi
      New FileMaker 18 version improves flash dialog and progress bar.
      Alphen aan den Rijn, the Netherlands, October 14, 2019–Troi today announced the immediate availability of Troi Dialog Plug-in 8.0 for FileMaker Pro 18.
      What is Troi Dialog Plug-in?
      Troi Dialog Plug-in is a very powerful tool for displaying all sorts of dialogs in FileMaker Pro. The text of the dialog and of the buttons can be created dynamically by using a script step or a calculation. All from within FileMaker you can:
      show an input dialog to let a user input data in up to 15 fields and up to 4 buttons choose these input fields to be any of the following: simple text, password field, popup list or check box show a list dialog or very big text dialog show temporary flash screens show a progress bar for lengthy operations add a standard icon or your own custom icons What is new in version 8.0?
      Troi Dialog Plug-in 8.0 has the following new functionality:
      Tested and made compatible with FileMaker Pro 18 and macOS 10.15 (Catalina). Tested and made compatible with Windows 10 version 1903 (May 2019 Update). Improved the Show Flash Dialog script step and the Dial_FlashDialog function. You can now specify a countdown text to be displayed at the bottom of the dialog, for example the text “This flash dialog will dismiss in <secs> seconds”. The plug-in will substitute <secs> with the number of seconds remaining. Improved the Dial_ProgressBar function. It can now display icons, including custom icons. In version 8.0 we also made the following improvements:
      IMPORTANT (macOS only) The minimum supported FileMaker version is now FileMaker Pro 14. Also the minimum supported Mac OS version is now OS X 10.11 (El Capitan). You can keep using v7.5.x for older versions of FileMaker Pro or Mac OS X. (macOS) Fixed a problem with the Dial_IconControl function where a custom icon would not be shown on a dialog, for some JPEG based icons. (Windows) Improved the Dial_ProgressBar function. The plug-in now properly handles the case where the parent window of the progress bar is closed before the progress bar dialog is removed. Also improved the case where you show another Troi dialog when the progress bar dialog is still visible. The new dialog will now be in front and have the keyboard focus. (Windows) Fixed a bug where improper handling of a closing FileMaker parent window could lead to a crash. This could happen when multiple Troi Dialogs where shown in one script. (Windows) Fixed a bug in the Dial_Dialog function where closing the dialog could lead to a crash. (macOS) Prepared the plug-in for notarization: the plug-in can now be added to a runtime, to create a hardened FileMaker runtime app which can be notarized by Apple. Notarization gives users more confidence, as the runtime has been checked by Apple for malicious components. Improved the initialization when installing the plug-in with the FileMaker Pro “Install Plug-In File” script step. Modernized several example files and updated the code base. More detailed information on all changes and improvements implemented in Troi Dialog Plug-in 8.0 can be found on the Dialog Plug-in page.
      Pricing & Availability
      A fully functional demo version of Troi Dialog Plug-in 8.0 is available on the Dialog Plug-in page.
      Licenses cost US$ 59 per user. Details on developer licenses and multi-user discounts can be found on the Dialog Plug-in page. You can order licenses from our shop.
      Upgrade information
      Version 8.0 needs a new registration. The upgrade is free for users who bought a license for Troi Dialog Plug-in on or after November 14, 2018. Eligible users have been sent a new registration. Contact us if you have not received yours.
      Upgrades from licenses bought before November 14, 2018 are available from US$ 35 per user. Upgrade prices for other licenses can be found in the shop. You can order upgrades there.
    • By troi
      Updated file management plug-in for FileMaker Pro 18 with several improvements.
      Alphen aan den Rijn, the Netherlands, June 13, 2019–Troi today announced the immediate availability of Troi File Plug-in 11.0.1for FileMaker 18. This is a maintenance update which fixes problems you might encounter when creating folders, making thumbnails and using the drag and drop functionality.
          Improvements in Troi File Plug-in version 11.0.1
      Troi File Plug-in 11.0.1 has the following changes and improvements:
      (Windows) Fixed a bug in the Create Folder script step and TrFile_CreateFolder function: the plug-in no longer returns error $$-43 (fnfErr) when creating nested subfolders on a mounted shared disk. (macOS) Fixed a problem with creating thumbnails from PDFs with the Create Thumbnail script step or the TrFile_CreateThumbnail function: the plug-in no longer returns error code $$-2003 instead of the thumbnail. (macOS) Fixed a possible memory leak when using the drag and drop functionality. (macOS) Fixed a bug in the Add DragAndDrop Handler script step and the TrFile_DragAndDrop function where it could return error $$-5600 when running FileMaker Pro 18. (Windows) Fixed a bug in the Add DragAndDrop Handler script step and the TrFile_DragAndDrop function when running FileMaker Pro 14, which would cause the script not to be triggered. Updated the DragAndDrop.fmp12 example to check for the minimum plug-in version 11.0.1. More detailed information on all changes and improvements can be found on the File Plug-in page.
      You can download the new version there.
      Upgrading to version 11.0.1 is free for all users of version 11.0. You don’t need a new registration code.
      Upgrades from older versions are available from US $ 59. You can order upgrades from our shop.
    • By Richard Carlton
      There are 10 things that you need to know about the newly released FileMaker 18 Platform.
      [email protected]
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.