Problem: Users were not being created in the Helper file, and the /api endpoint returned Cannot read properties of undefined (reading 'eventMappings').
Troubleshooting: Verify that the BetterForms server is pointed to the correct FileMaker Server, that the gateway is enabled, and that the Helper and business files are accessible. Confirm the FileMaker credentials configured in the app/server environment card by testing them against the data file.
Solution: The app had an incorrect or stale password configured. Resetting the app credentials to the verified FileMaker password restored the integration and allowed the Helper script to run. The BetterForms privilege set can be used with FileMaker access disabled when appropriate; a separate custom privilege set is not necessarily required.
Thread Attachments
Original Slack Thread
User U030U5PCXKQ: have a new app that uses authentication. I'm having trouble getting the user created in the Helper file... it appears that the script never runs. I've checked the credentails and have reset them. Need some help troubleshooting this . domain is <https://ketomi-timecards.fmbetterforms.com/|ketomi-timecards.fmbetterforms.com>
User U03JJ08GZEG: <@U030U5PCXKQ> do you still need help with this
User U030U5PCXKQ: yes
User UBBJX2EHM: doesnt look like creds or app linking are set up correct. hitting /api endpoit shows error
User U030U5PCXKQ: i’ve tried resetting the credentials several times … on the app, the helper, and the data file
User UBBJX2EHM: Have you seen any records in the helper ?
User U030U5PCXKQ: no records in the helper file
User UBBJX2EHM: Ok, and does the server connection test work?
User U030U5PCXKQ: <https://ketomi-timecards.fmbetterforms.com/api|ketomi-timecards.fmbetterforms.com/api>
{“message”:“Cannot read properties of undefined (reading ‘eventMappings’)“,”code”:500}
User UBBJX2EHM: yeah so that means the servers gateway is not working (if you are showing result from server tab, test area
User U030U5PCXKQ: so the app should be pointed to my FMS at <http://fmserver.dsvail.com|fmserver.dsvail.com> …how do I verify that ? I mean that was a choice made on setup, but how do I verify now
User UBBJX2EHM: Only the servier is the serves page points to your fms, that looks correct as long as you can see the (command F) betterforms_helper and your business file
User U030U5PCXKQ: I can open the Helper file from app
User UBBJX2EHM: ok great, next check permissions, the helper will not need to be touched.
check gateway is anabled in teh fms box and carefuly set creds
User U030U5PCXKQ: was able to login to the data file using user:BetterForms with known password
User UBBJX2EHM: hmm I thought cfmclient login for that was turned off ..
ok and set that pw into KS env card?
User U030U5PCXKQ: I turned FM access on so I could test the credentials
User U030U5PCXKQ: hey… got it working … was the credentials set on the app … just reset to verified password and it is working now … I swear I reset that password yesterday 3 times. sorry to waste your time. question though to verify on this topic. The BetterForms priv. set in both the data file and the helper file do not need the FM access on
User UBBJX2EHM: yeah, I figured as much :wink:
User U030U5PCXKQ: another thing I did not know is that you can choose the Data Entry Only priv set and then turn off FM Access … thought you needed to duplicate and create another unique priv set eg. BetterForms


