# Bulk events import - random errors in 2.34 - UID is not a valid data element

**URL:** <https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462>\
**Category:** Support - Assistance technique\
**Tags:** api, import, importsummary\
**Created:** [9 December 2020 08:29 UTC](https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462 "2020-12-09T08:29:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JIMENEZ\_POMARETA\_Ram](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/jimenez_pomareta_ram/32/26890_2.png) [@JIMENEZ\_POMARETA\_Ram](https://community.dhis2.org/u/JIMENEZ_POMARETA_Ram)\
**Post date:** [9 December 2020 08:29 UTC](https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462/1 "2020-12-09T08:29:11Z")

</div>

Hello,

I am experiencing an strange error when importing lot of events through the API. The events are quite simple: 1 event per orgUnit with the same structure, containing only 1 value for the same dataElement in the program.

```
POST: /api/events?importReportMode=ERRORS&importStrategy=CREATE&async=true&preheatCache=false&skipExistingCheck=true

```

When doing a POST to the previous event endpoint and joining a json with hundred or thousand of events, almost all are being imported. But, randomly, 3 or 2 or 1 are raising the following error:

```
UID12345678 is not a valid data element

```

When deleting the events in the database and uploading the same json again, other events for other orgUnits are raising the problem.

The taskSummary looks like this:

 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/7/2/7263fb39dbcfca6b185ba6d742ccc5c6676ecf12.png)

And the global summary says:  
Status: ERROR. Imported: 459. Updated: 0. Ignored: 2. Total: 461

When checking in the database, a programstageinstance is created, though without value:

```
select eventdatavalues from programstageinstance where uid = 'dFrwOK5EYtY';
 eventdatavalues
-----------------
 {}
(1 row)

```

Thanks for any idea/suggestion

---

<div class="post-metadata">

**Author:** ![diallotafsir52](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/diallotafsir52/32/27283_2.png) [@diallotafsir52](https://community.dhis2.org/u/diallotafsir52)\
**Post date:** [15 February 2025 16:44 UTC](https://community.dhis2.org/t/bulk-events-import-random-errors-in-2-34-uid-is-not-a-valid-data-element/41462/2 "2025-02-15T16:44:52Z")

</div>

Hello just a quick update on this one to save someone else time.

I had the same issue and realized that it was linked to sharing settings, make sure that the data Element is shared with the user or with public.

Thanks
