#4 I can't get this to archive my lj

open
nobody
5
2007-08-12
2007-08-12
otherdeb
No

I installed lj archive 0.9.7 on my computer, and I was able to archive my sweetie's lj, but when I tried to archive mine I got the following error message:

System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
at System.Data.DataSet.FailedEnableConstraints()
at System.Data.DataSet.EnableConstraints()
at System.Data.DataSet.set_EnforceConstraints(Boolean value)
at System.Data.DataTable.EndLoadData()
at EF.ljArchive.Engine.Sync.Merge(Journal j, EventCollection ec, CommentCollection cc, UserMapCollection umc, SyncItemCollection deletedsic, LoginResponse lr, String communityPicURL, DateTime lastSync)

Please help me get this resolved.

Thanks --

otherdeb

Discussion

  • Logged In: NO

    I think you may have the same problem my girlfriend had. The patch is applied to Journal.cs

    public UserPicsRow AddUserPicsRow(string PicKeyword, string PicURL) {
    if (this.FindByPicKeyword(PicKeyword) == null)
    {
    UserPicsRow rowUserPicsRow = ((UserPicsRow)(this.NewRow()));
    rowUserPicsRow.ItemArray = new object[] {
    PicKeyword,
    PicURL};
    this.Rows.Add(rowUserPicsRow);
    return rowUserPicsRow;
    }
    else
    return null;
    }