Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Issue Archive Job custom fields

(1) ShareShare
ReportReport
Posted on by 357
Hi Community,
 
I created the same fields to transfer from Job to job archive, but when I try to archive this message appears: 
 
 
but these fields are the same in both tables. Do you know what is happening?
Job & Job Archive
 
 
 
If you know how I can fix it, I would appreciate it.
Thank you very much.
  • Verified answer
    YUN ZHU Profile Picture
    84,718 Super User 2025 Season 1 on at
  • Manuel Lozada Profile Picture
    357 on at
    Issue Archive Job custom fields
    Hi Yun Zhu thank you for your answer. I found the problem in this case to transfer field we need to have the same ID Number field to allow it.
     
    For example in your case ID 50000 for both fields.
  • Suggested answer
    YUN ZHU Profile Picture
    84,718 Super User 2025 Season 1 on at
    Issue Archive Job custom fields
    Hi, I suspect your other customizations affect this, I tested it briefly and there was no problem. You can test it in a completely new environment.
     
    Thanks
    ZHU
  • Manuel Lozada Profile Picture
    357 on at
    Issue Archive Job custom fields
    I tried to emulated the codeunit 5139 job archive management to skip the Jobarchive.transferfield(Job), it is work with my custom fields but the problem is Microsoft linked this command Jobarchive.transferfield(Job) with delete Job button. Therefore we can allow customize field from Job table ext to Job Archive table ext.
  • Manuel Lozada Profile Picture
    357 on at
    Issue Archive Job custom fields
    There are the error details:
    The problem is the line  does not allow to populate our custom fields on job archive management codeunit, inclusive if you try to flow with the available event subscribers do not work. This is a system bug for our development.  The only solution that i have now, is emulate creating another codeunit with skip the transferfields but its wasting time because you need to adding all Job system and custom fields.
     
    In case, if you have another solution please let me know, I would appreciate it.
  • Suggested answer
    Mohana Yadav Profile Picture
    60,238 Super User 2025 Season 1 on at
    Issue Archive Job custom fields
    Please paste the text from "Show details" in your error.
  • YUN ZHU Profile Picture
    84,718 Super User 2025 Season 1 on at
    Issue Archive Job custom fields
    Except for some special fields, the standard uses the TransferFields method, so are the ids different?
     
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    19,937 Most Valuable Professional on at
    Issue Archive Job custom fields

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

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans