Skip to main content

Notifications

Announcements

No record found.

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 355
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
    YUN ZHU 77,874 Super User 2025 Season 1 on at
  • Manuel Lozada Profile Picture
    Manuel Lozada 355 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
    YUN ZHU 77,874 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
    Manuel Lozada 355 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
    Manuel Lozada 355 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
    Mohana Yadav 60,153 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
    YUN ZHU 77,874 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
  • gdrenteria Profile Picture
    gdrenteria 14,483 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans