Skip to main content
Solved

Error when Creating Timecard using Business Event Linked to a GI

  • Jul 18, 2024 11:57 PM UTC
  • 5 replies
  • 209 views
  • Translate All

Hi

I found a post with a method to create timecards from a generic inquiry linked to a business event. This was exactly what I was trying to achieve and so I imported the xml for the GI, business event and import scenario.

When I ran this, I got an error in the business event saying “Error: ‘Employee’ cannot be found in the system”. From the Business Event History, I can then EXECUTE the subscriber error manually and the process works fine - the Time Card is created.

 

I tried to resolve this and followed other similar posts but still no success.

I have simplified the GI and Data Provider and Import Scenario so that it is now very basic. I also setup an Import Scenario using Excel as the data source. This worked fine for the same employee, so this suggests to me that the data is correct and I have security rights to do this.

Any suggestions would be really appreciated. I’ve attached the GI, Business Event and Import Scenario

 

Thanks, Kevin

Best answer by ebeany

Hi @KevinLong . I’m experiencing exactly the same behaviour as you describe, also on MYOB Acumatica 2023.1. I wrote my own GI and IS, but leaning heavily on both the files that you attached on this thread, and on  @LeanneB ‘s post on the MYOB forum.

I didn’t really want to have to foist an Import by Scenario screen on the end users, but that’s what I’ve had to settle for for now.

 

View original

5 replies

Dipak Nilkanth
Pro III
Forum|alt.badge.img+14

Hi @KevinLong ,

With the using above IS, BE and GI xml files, I am able to process the GI records in sales DB instance.
Is there any customization Published, which causing issue for the same?
Have you tried with another employee?
 


 

Translate

  • Author
  • Freshman I
  • Jul 21, 2024 10:02 PM UTC

Thanks for your reply Dipak. Good to know that you can get it working ok.

I'm running version 2023.1 (MYOB Acumatica). There are customisations only in Equipment Time Cards. Nothing in Employee Time Cards. Yes, I have tried for other employees.

 

Thanks again.

Translate

ebeany
Freshman III
  • Freshman III
  • Answer
  • Aug 19, 2024 2:43 AM UTC

Hi @KevinLong . I’m experiencing exactly the same behaviour as you describe, also on MYOB Acumatica 2023.1. I wrote my own GI and IS, but leaning heavily on both the files that you attached on this thread, and on  @LeanneB ‘s post on the MYOB forum.

I didn’t really want to have to foist an Import by Scenario screen on the end users, but that’s what I’ve had to settle for for now.

 

Translate

Forum|alt.badge.img
  • Freshman II
  • Aug 26, 2024 7:58 PM UTC

Strange, having this same issue but even worse it works in one tenant and not the other. No customizations published.

Translate

Forum|alt.badge.img
  • Freshman II
  • Aug 28, 2024 4:31 PM UTC

Hi.

 

We determined what was causing this on our end as our import scenario worked in a different tenant. If you have any specific user roles assigned to the branch or the pay group for example to filter access, please ensure your “admin” user is assigned to those roles as well. The business event is explicitly using the “admin” user to execute the event, not the person’s user who triggered it. As for it working when you try and execute from event history, I suspect when you execute from business event history, it is using your user which is why it then works.

Translate