Minecraft - Executing on an entity is not working

When I put in this command in a command block:
/scoreboard players set @e[type=Item] PigProgress 1 {Item:{id:319}}
It says:
The dataTag does not match for c97c9605-6b59-44e8-bf24-aa2e46c9c746
Does anyone know why? The entity is a porkchop item.
Best Answer
There are a few things that might cause this.
You are on 1.8
You are on 1.8. This is probably what your problem is. As of 1.8 you cannot use number ids for items. You instead need to use minecraft:(name). Instead of
{Item:{id:319}}
Try
{Item:{id:minecraft:porkchop}}
It just isn't detecting the right item
Your command block will output this if it finds an item on the ground which isn't a porkchop. This will not affect the usefullness of the command, and it will still work. Which is why it still will output this even after it is fixed, if it detects an item other than a porkchop on the ground, but it doesn't matter because the scoreboard command will still work.
Pictures about "Minecraft - Executing on an entity is not working"



How do you execute all entities in Minecraft?
The game processes these subcommands in order from front to end, for example, the following commands are different:How do you use the entity command in Minecraft?
EntityData Command in Minecraft Java Edition (PC/Mac) entity is the entity you want to target. It can be either the UUID for an entity or you can use the @e target selector to target all entities or a type of entity.How do you give an entity motion in Minecraft?
Bedrock Edition can use @r to target non-player entities via the type selector argument; in Java Edition, to select a random entity, use @e[sort=random] instead. In Bedrock Edition, @r can only target entities who are alive.Minecraft Execute Command [1.19] Tutorial
More answers regarding minecraft - Executing on an entity is not working
Answer 2
User112881 is correct, but his/her tag is wrong.
It should be: {Item:{id:"minecraft:porkchop"}}
Not {Item:{id:minecraft:porkchop}}
Answer 3
Are you playing in 1.8? If so, then you no longer can use IDs, you need to use item's name instead.
Find all the names here: http://minecraft-ids.grahamedgecombe.com/
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kampus Production, Pixabay, Pixabay, Kampus Production