Skip to main content
Best answer

Error while invoking: Error during execution: Cannot read property 'username' of undefined


  • New
  • 7 replies

Hey is there a solution for this? Error while invoking: Error during execution: Cannot read property 'username' of undefined

Best answer by Troy TessaloneBest answer by Troy Tessalone

@GBA 

Have you tested your Wix Automation Rules and tested your Zap trigger to view the returned data points?

Help article about how to change the trigger test data: https://zapier.com/help/create/basics/change-the-test-data-in-your-zap-trigger

 

Alternative is to use a Webhook from Wix: https://support.wix.com/en/article/wix-automations-connecting-with-a-webhook

Zap trigger would be Webhooks - Catch Hook.

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

12 replies

Troy Tessalone
Forum|alt.badge.img+14

Hi @GBA 

Please clarify what app you are using in the Zap that is returning the error and provide screenshots for us to have proper context, thanks.


  • Author
  • New
  • 7 replies
  • April 28, 2022

Using Wix for the trigger and Discord for the role assignment


Troy Tessalone
Forum|alt.badge.img+14

@GBA 

Please clarify which app is returning the error message by providing detailed screenshots with how your Zap steps are configured in order for us to have more context, thanks.


  • Author
  • New
  • 7 replies
  • April 28, 2022

At this stage it is asking me to do a test Zap and won’t let me go any further. I understand it would need the username of the discord member in order to assign the role which I have created a field on Wix for users to input their discord usernames but as I can’t go any further I’m unsure if it will allow the option to read specefic fields from the Wix platform?


  • Author
  • New
  • 7 replies
  • April 28, 2022

 


Troy Tessalone
Forum|alt.badge.img+14

@GBA 

Please provide screenshots with the error and how your Zap steps are configured so we can have context, thanks.


  • Author
  • New
  • 7 replies
  • April 28, 2022

The automation is setup so someone purchases a V.I.P plan the zap will assign them the V.I.P role in discord. The Zapier will need to read the custom field (discord username) on Wix to find the correct user in Discord to assign the role


  • Author
  • New
  • 7 replies
  • April 28, 2022

Do you know if Zapier will be able to read my contact fields on Wix?


Troy Tessalone
Forum|alt.badge.img+14

@GBA 

The provided screenshot does not show enough detail with how your Zap steps are configured with how the fields are set in each step.


  • Author
  • New
  • 7 replies
  • April 28, 2022

Hey Troy, you shouldn’t need a screenshot to know if the Zap integration would be able to read the Wix custom contact fields or not? The method I have explained should be enough for a yes or no answer - I don’t mean to come across rude :)


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30962 replies
  • Answer
  • April 28, 2022

@GBA 

Have you tested your Wix Automation Rules and tested your Zap trigger to view the returned data points?

Help article about how to change the trigger test data: https://zapier.com/help/create/basics/change-the-test-data-in-your-zap-trigger

 

Alternative is to use a Webhook from Wix: https://support.wix.com/en/article/wix-automations-connecting-with-a-webhook

Zap trigger would be Webhooks - Catch Hook.


  • Author
  • New
  • 7 replies
  • April 28, 2022

Ok awesome, I think I may have to use a webhook to send the information through for the trigger but will have a read through the links you have shared. Thank you very much Troy :)