Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem: The translation service translated some jobs but the translation can't be retrieved to the website

Solution: the upload translated XLIFF file was having some issues in the format, I told the client to remove the extra tags that causes the issues and it solved the problem

Relevant Documentation:

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 3 voices.

Last updated by Ahmed Mamdouh 5 months ago.

Assisted by: Ahmed Mamdouh.

Author Posts
June 27, 2024 at 4:15 pm #15845579

errikosP

Background of the issue:
I am trying to: A translation job I sent to CrowdIn is stuck in the "in progress" state, despite all strings being translated in CrowdIn. Can you help? TP ID: 1780286 (Describe what you were attempting when the issue occurred)

Symptoms:
A translation job is stuck in the "in progress" state even though all strings are translated in CrowdIn.

Questions:
Why is the translation job stuck in the "in progress" state?
How can I resolve the issue of the translation job not completing?

June 27, 2024 at 5:38 pm #15845790

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please try this and let me know if it helps.

Edit the page in question (in original language) and resave the page. Make sure you don’t actually do any changes before saving.

Once you do that it will re trigger the job and it should help get it unstuck. once done go to WPML->Translation Management and run the Check status and get translations button.

July 1, 2024 at 8:03 am #15866448

errikosP

That doesn't help. It creates a new translation job that replaces the old one, but even the new job is stuck in "in progress" despite all strings being translated in CrowdIn. The new TP ID is 1782318, the dashboard links to hidden link

July 1, 2024 at 6:31 pm #15870186

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me and sharing the job ID .

Please go to WPML->Support-> On this page, click the communication log link. Copy the information from the log and share it with me.

Also, did you by any chance every open this specific job in a local translator software before it was sent to Crowdin ?

July 2, 2024 at 8:20 am #15873498

errikosP

Communication log:

```
2024 07:42:26 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": {"custom_fields":[{"label":"API token","name":"api_token","type":"text"}]}
}
07/02/2024 08:14:50 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_ids%5D%5B0%5D=1782364&filter%5Barchived%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_ids":[1782364],"archived":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:50 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1782364,"cms_id":"page_2110_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":97081},"archived":false,"translation_revision":0,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-01T13:22:14.000Z","translated_xliff_download_url":null,"cancellation_reason":null}]
}
07/02/2024 08:14:50 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_state%5D=translation_ready&filter%5Barchived%5D=0&filter%5Brevision_greater_than%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_state":"translation_ready","archived":0,"revision_greater_than":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:51 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1770369,"cms_id":"page_2282_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96618},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:19:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1770456,"cms_id":"page_31_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96621},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:21:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1778339,"cms_id":"page_1781_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96917},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-01T11:06:51.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null}]
}
07/02/2024 08:14:51 am - call - /batches/sync.json?api_version=1.1000000000000001&batch_id%5B0%5D=97081&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"batch_id":[97081],"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:51 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:52 am - call - /batches/sync/status.json?api_version=1.1000000000000001&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:52 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:53 am - call - /batches/sync/status.json?api_version=1.1000000000000001&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:53 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:53 am - call - /batches/sync/status.json?api_version=1.1000000000000001&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:54 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:54 am - call - /batches/sync/status.json?api_version=1.1000000000000001&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:55 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:55 am - call - /batches/sync/status.json?api_version=1.1000000000000001&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:55 am - response - {"queued_batches":[97081]}
07/02/2024 08:14:56 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_ids%5D%5B0%5D=1782364&filter%5Barchived%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_ids":[1782364],"archived":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:56 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1782364,"cms_id":"page_2110_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":97081},"archived":false,"translation_revision":0,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-02T08:14:53.000Z","translated_xliff_download_url":null,"cancellation_reason":null}]
}
07/02/2024 08:14:56 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_state%5D=translation_ready&filter%5Barchived%5D=0&filter%5Brevision_greater_than%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_state":"translation_ready","archived":0,"revision_greater_than":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:14:57 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1770369,"cms_id":"page_2282_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96618},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:19:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1770456,"cms_id":"page_31_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96621},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:21:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1778339,"cms_id":"page_1781_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96917},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-01T11:06:51.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null}]
}
07/02/2024 08:16:31 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_ids%5D%5B0%5D=1782364&filter%5Barchived%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_ids":[1782364],"archived":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:16:31 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1782364,"cms_id":"page_2110_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":97081},"archived":false,"translation_revision":0,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-02T08:14:57.000Z","translated_xliff_download_url":null,"cancellation_reason":null}]
}
07/02/2024 08:16:31 am - call - /jobs.json?api_version=1.1000000000000001&filter%5Bjob_state%5D=translation_ready&filter%5Barchived%5D=0&filter%5Brevision_greater_than%5D=1&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"filter":{"job_state":"translation_ready","archived":0,"revision_greater_than":1},"accesskey":"UNDISCLOSED"}
07/02/2024 08:16:32 am - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":1770369,"cms_id":"page_2282_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96618},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:19:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1770456,"cms_id":"page_31_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96621},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-06-25T20:21:11.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null},{"id":1778339,"cms_id":"page_1781_en_pt-pt","job_state":"translation_ready","source_language":"en","target_language":"pt-pt","batch":{"id":96917},"archived":false,"translation_revision":2,"ts_status":null,"last_sync_status":"finished","last_sync_date":"2024-07-01T11:06:51.000Z","translated_xliff_download_url":"hidden link;\u0026project_id=18356\u0026revision=2","cancellation_reason":null}]
}
07/02/2024 08:16:39 am - call - /batches/sync.json?api_version=1.1000000000000001&batch_id%5B0%5D=97081&accesskey=UNDISCLOSED - {"api_version":1.1000000000000001,"batch_id":[97081],"accesskey":"UNDISCLOSED"}
07/02/2024 08:16:39 am - response - {"queued_batches":[97081]}
```

The job with ID 1782364 is the problem one (I resubmitted the translation job to CrowdIn yesterday). The translation service says that the translation is not ready yet. As I've been trying to tell you, I think the problem lies in your translation service not recognizing that the translation job is completed in CrowdIn, for some reason. It would be really helpful if you could figure out why that is the case.

> Also, did you by any chance every open this specific job in a local translator software before it was sent to Crowdin ?

No, I don't think so.

July 2, 2024 at 8:25 am #15873525

Ahmed Mamdouh
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hello,

This is Ahmed Mamdouh from the translation proxy team and I'll help you solve this issue.

I checked our logs and I found an error related to the translated XLIFF file you are trying to upload, So I need you to provide me with 2 things to be able to know the root cause of this issue:

1- A screenshot from the jobs tab (Go to the website admin access and from the side menu go to WPML -> Translation Management -> Jobs) with a highlight on the mentioned job.

2- Please provide me with the translated XLIFF file for this job to check it (you will probably need to upload the file on any of the cloud services "Google Drive - dropbox -etc..")

Best regards,
Ahmed Mamdouh.

July 2, 2024 at 5:55 pm #15877513

Ahmed Mamdouh
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hello,

I checked the provided XLIFF file and I found that there is an extra end of tag that causes the issue, In line 1631, there is a </g> without opening as shown in the attached screenshot, you need to remove this text, and upload the file again and it will work properly.

Best regards,
Ahmed Mamdouh.

July 3, 2024 at 8:38 am #15882342

errikosP

Thanks, that solved the problem. I'm not sure why the source strings were not escaped before upload, as seems to be the case for other jobs. I'd appreciate if you could delete that screenshot as it's public.