not all articles appear in content when uploading to DPS via API

Avatar

Avatar
Level 1
InceSouthAfrica
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
InceSouthAfrica
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
InceSouthAfrica
Level 1

08-01-2016

I am trying to upload multiple articles to my DPS project via API integration (PHP).

As an example, I tried to upload 28 articles today but only 14 appeared. No errors have been recorded.

Can anyone help?

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Boost 5
Employee
mikecyang
Employee

Likes

10 likes

Total Posts

54 posts

Correct reply

23 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Employee
mikecyang
Employee

Likes

10 likes

Total Posts

54 posts

Correct reply

23 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
mikecyang
Employee

12-01-2016

Hi,

By uploading, did you mean creating the article entity or uploading the .article content to the article entity or both?

If creating article entity, as jerwarren mentioned, the articleName is unique. If attempting to create an article entity with the same articleName, then it will fail and you'll have to check the response code for a HTTP 409 (see getResponse()). The script will not force quit from this error because it has other uses, such as a trigger to switch to an entity update.

The ingestion is ASYNC, so the .article content upload can be successful but still fail during ingestion. You will need to use the getStatus(), or requestStatus() if you're using the Content Producer Service SDK for PHP, to track the ingestion progress and status.

- Mike

Avatar

Avatar
Level 1
InceSouthAfrica
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
InceSouthAfrica
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
InceSouthAfrica
Level 1

11-01-2016

Thank you for your reply.

They definitely have unique articleName values.

Avatar

Avatar
Boost 5
Level 2
jerwarren
Level 2

Likes

5 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile

Avatar
Boost 5
Level 2
jerwarren
Level 2

Likes

5 likes

Total Posts

30 posts

Correct reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 1
View profile
jerwarren
Level 2

08-01-2016

are you sure they all have distinct articleName values? It's possible that you're overwriting half of them...